<html>
<head><meta charset="utf-8"><title>MSRV announcement · clippy · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/index.html">clippy</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/MSRV.20announcement.html">MSRV announcement</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="217875773"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/MSRV%20announcement/near/217875773" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> flip1995 <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/MSRV.20announcement.html#217875773">(Nov 25 2020 at 12:06)</a>:</h4>
<p>With <a href="https://github.com/rust-lang/rust-clippy/pull/6201">https://github.com/rust-lang/rust-clippy/pull/6201</a> Clippy now has a configuration option for an MSRV. You can either set it in the Clippy configuration file or on nightly (requires <code>custom_inner_attributes</code> feature) with <code>#![clippy::msrv = "1.40.0"]</code>. When this conf is set, lints that require a specific Rust version won't trigger if the MSRV isn't met.</p>



<a name="217876229"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/MSRV%20announcement/near/217876229" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> flip1995 <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/MSRV.20announcement.html#217876229">(Nov 25 2020 at 12:11)</a>:</h4>
<p>These are the lints, this config option currently applies to: <a href="https://rust-lang.github.io/rust-clippy/master/index.html#msrv">https://rust-lang.github.io/rust-clippy/master/index.html#msrv</a> (more to come)</p>



<a name="217879344"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/MSRV%20announcement/near/217879344" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/MSRV.20announcement.html#217879344">(Nov 25 2020 at 12:46)</a>:</h4>
<p>That's awesome! This is the main reason I silence clippy lints so it's great to have a way to do it systematically and in one place :)</p>



<a name="217904419"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/MSRV%20announcement/near/217904419" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> flip1995 <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/MSRV.20announcement.html#217904419">(Nov 25 2020 at 16:09)</a>:</h4>
<p>This will hit nightly on December 4th if everything goes as planned. We (well, I) also want to do a blog post (rust internals) about this new shiny feature. Mainly to ask people to tell us more lints, that can profit from this option.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>